<?php
/**
 * Created by PhpStorm.
 * User: 10037
 * Date: 2022/6/12
 * Time: 11:18
 */

namespace app\admin\controller;


use think\facade\Filesystem;
use think\facade\Request;

class Upload
{
    public function uploadImg()
    {
        $file = Request::file('file');
        $path = Filesystem::disk('public')->putFile('img', $file);

        return $path;
    }

}